import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/village/list',
    method: 'get',
    params: query
  })
}
export function fetchVList(query) {
  return request({
    url: '/village/vlist',
    method: 'get',
    params: query
  })
}

export function create(data) {
  return request({
    url: '/village/create',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/village/update',
    method: 'post',
    data
  })
}

export function deleteItem(data) {
  return request({
    url: '/village/delete',
    method: 'post',
    data
  })
}
